
package org.darcy.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel("文章: BizArticle")
@Table(name = "biz_article")
@Getter
@Setter
public class BizArticle implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="")
	@TableId(type= IdType.AUTO)
	private Long id;
	
	@ApiModelProperty(value="文章标题")
	private String title;
	
	@ApiModelProperty(value="用户ID")
	private Long userId;
	
	@ApiModelProperty(value="文章封面图片")
	private String coverImage;
	
	@ApiModelProperty(value="当前文章适用的编辑器类型")
	private String editorType;
	
	@ApiModelProperty(value="文章专属二维码地址")
	private String qrcodePath;
	
	@ApiModelProperty(value="是否是md文件")
	private Boolean isMarkdown;
	
	@ApiModelProperty(value="文章内容")
	private String content;
	
	@ApiModelProperty(value="markdown版的文章内容")
	private String contentMd;
	
	@ApiModelProperty(value="是否置顶")
	private Boolean top;
	
	@ApiModelProperty(value="类型")
	private Long typeId;
	
	@ApiModelProperty(value="状态")
	private Byte status;
	
	@ApiModelProperty(value="是否推荐")
	private Boolean recommended;
	
	@ApiModelProperty(value="是否原创")
	private Boolean original;
	
	@ApiModelProperty(value="文章简介，最多200字")
	private String description;
	
	@ApiModelProperty(value="文章关键字，优化搜索")
	private String keywords;
	
	@ApiModelProperty(value="是否开启评论")
	private Boolean comment;
	
	@ApiModelProperty(value="文章私密访问时的密钥")
	private String password;
	
	@ApiModelProperty(value="该文章是否登录后才可访问")
	private Boolean requiredAuth;
	
	@ApiModelProperty(value="添加时间")
	private Date createTime;
	
	@ApiModelProperty(value="更新时间")
	private Date updateTime;
	


}
